﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BTCairo
{
    public class Highlight : Effect
    {
        public override void DoEffect(Shape shape)
        {
            shapeEffect = shape.CloneShape();
            shapeEffect.myCommonGraphic.MyInfoGraphic.x -= 5;
            shapeEffect.myCommonGraphic.MyInfoGraphic.y -= 5;
            shapeEffect.myCommonGraphic.MyInfoGraphic.widthShape += 10;
            shapeEffect.myCommonGraphic.MyInfoGraphic.heightShape += 10;
            shapeEffect.myCommonGraphic.MyInfoGraphic.width += 5;
            shapeEffect.myCommonGraphic.MyInfoGraphic.lineRed = 200;
            shapeEffect.myCommonGraphic.MyInfoGraphic.lineGreen = 200;
            shapeEffect.myCommonGraphic.MyInfoGraphic.lineBlue = 200;
            shapeEffect.myCommonGraphic.MyInfoGraphic.fillRed = 200;
            shapeEffect.myCommonGraphic.MyInfoGraphic.fillGreen = 200;
            shapeEffect.myCommonGraphic.MyInfoGraphic.fillBlue = 200;
            shapeEffect.DrawEffect();
        }

        public override void ParseXmlElement(System.Xml.XmlDocument doc, System.Xml.XmlElement root)
        {
            shapeEffect.ParseXmlElement(doc, root);
        }
    }
}

